<template>
  <div class="container" id="components-layout-demo-basic">
    <a-layout-header>
      <div class="headDiv">
        <div class="headLogo">
          <img style="height: 50px;" src="static/img/logoZX.png" alt />
        </div>
      </div>
    </a-layout-header>
    <a-layout-content>
      <router-view class="contentClass"></router-view>
    </a-layout-content>
    <div class="footClass">
      <span style="margin-right: 25px;">
        <a
          href="https://www.77pay.com.cn/index.html"
          target="_blank"
          rel="noopener noreferrer"
          style="color: #93969b;"
        >关于申鑫</a>
      </span>
      |
      <span style="margin-left: 25px;">©2012-2020 上海申鑫电子支付股份有限公司</span>
      <span style="margin-left: 40px;">客服热线 : 400-642-0866</span>
      |
      <span style="margin-right: 25px;">
        <a
          href="static/UserPrivacyPolicy.html"
          target="_blank"
          rel="noopener noreferrer"
          style="color: #93969b;"
        >用户隐私权政策</a>
      </span>
    </div>
  </div>
</template>

<script>
export default {
  name: "Login",

  data() {
    return {
      form: this.$form.createForm(this),
      logging: false,
      error: "",
      per: false,
      login: false
    };
  },
  watch: {
    $route(to, from) {
      // console.log(to);
      // console.log("this.$route.path");
      if (to.path == "/home/orgLogin") {
        // console.log("路由地址改变 单位客户");
        this.login = true;
        this.per = false;
      } else if (to.path == "/home/perLogin") {
        // console.log("路由地址改变 个人客户");
        this.login = true;
        this.per = true;
      } else {
        this.login = false;
      }
    }
  },
  computed: {
    systemName() {
      return this.$store.state.setting.systemName;
    },
    linkList() {
      return this.$store.state.setting.footerLinks;
    },
    copyright() {
      return this.$store.state.setting.copyright;
    }
  },
  mounted() {
    console.log(this.$route.path);
    if (this.$route.path == "/home/loginall") {
      this.login = false;
    } else if (this.$route.path == "/home/orgLogin") {
      this.login = true;
      this.per = false;
    } else if (this.$route.path == "/home/perLogin") {
      this.login = true;
      this.per = true;
    } else {
    }
  },
  methods: {
    handleChange(value) {
      console.log(value);
    },
    gologin() {
      this.$router.push("/home/loginall");
    }
  }
};
</script>
<style scoped>
#components-layout-demo-basic {
  text-align: center;
  /* background: url("../../../static/img/bg.jpg") no-repeat; */
  background-color: #f8f9fb;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

#components-layout-demo-basic .ant-layout-header,
#components-layout-demo-basic .ant-layout-footer {
  color: #fff;
}

#components-layout-demo-basic .ant-layout-header {
  border-bottom: 1.5px solid #b3292c;
  height: 70px;
  padding: 0;
  line-height: 70px;
  background-color: transparent !important;
  background: transparent;
}

#components-layout-demo-basic .ant-layout-header .head-right span {
  margin: 0px 2vw;
  font-size: 15px;
  color: #e8eaea;
  font-family: "Microsoft YaHei";
  font-weight: 300;
}

#components-layout-demo-basic .ant-layout-header .head-left {
  font-size: 26px;
  text-align: right;
}

#components-layout-demo-basic .ant-layout-header .head-left img {
  width: 150px;
  height: 40px;
  margin-right: 1vw;
}

#components-layout-demo-basic .ant-layout-header .head-left i {
  font-style: italic;
}

#components-layout-demo-basic .ant-layout-header .head-left span {
  margin: 0 1vw;
  font-style: initial;
  font-family: "Microsoft YaHei";
}

#components-layout-demo-basic .ant-layout-content {
  height: 90vh;
}

#components-layout-demo-basic .ant-layout-footer {
  line-height: 1.5;
}

#components-layout-demo-basic .ant-layout-content {
  background: transparent;
  z-index: 999;
  color: #fff;
  min-height: 120px;
  /* // line-height: 120px; */
}

#components-layout-demo-basic > .ant-layout {
  margin-bottom: 48px;
}

#components-layout-demo-basic > .ant-layout:last-child {
  margin: 0;
}

span {
  cursor: pointer;
}

.headDiv {
  text-align: left;
  /* padding-left: 6vw; */
  background-color: #fff;
  color: #333;
  border-bottom: 1px solid #ebebeb;
}

.contentClass {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.footClass {
  color: #93969b;
  text-align: center;
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid #ebebeb;
  z-index: 1;
  /* margin-bottom: 35px; */
}
.headLogo {
  width: 1220px;
  margin: 0 auto;
  height: 70px;
  display: flex;
  align-items: center;
}
</style>